<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <meta  content="multipart/form-data; charset=utf-8" />
    <title>Title</title>
    <script src="js/jquery.1.12.4.min.js" charset="UTF-8"></script>
    <script type="text/javascript" src="/webjars/vue/2.6.10/dist/vue.js"></script>
    <script src="/webjars/axios/0.19.0/dist/axios.js" type="text/javascript"></script>
</head>
<body>
<body>
<div id="vuebox">
  <table>
    <tr>
      <td v-for="item in hotProductList.list">
          <span>{{item.proname}}</span>
      </td>
  </tr>
  </table>
</div>
</body>
</body>
</html>
<script type="text/javascript">
        var vm=new Vue({
            el:"#vuebox",
            data:{
                hotProductList:{}
            },
            methods:{

            },
            mounted(){
                //显示商品信息
                axios.get("/seleProduct").then(res=>{
                    this.hotProductList=res.data.data;
                    console.log(this.hotProductList.list)
                })
            }
    })
</script>
